<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSlidersTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('sliders', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('标题|input');
            $table->string('link')->nullable()->comment('链接|input');
            $table->string('thumb')->comment('缩略图|image');
            $table->tinyInteger('isshow')->default(1)->comment('显示|radio|1:是,2:否');
			$table->timestamps();
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('sliders');
    }
}
